package com.come4loves.game.module.fight.model;

import com.come4loves.game.module.fight.constants.BuffType;

public class BuffData {
	private BuffType buffType;
	private int buffValue;
	private int duration;
	private int nowTime;
	
	private int useId;
	public BuffData(int useId, BuffType buffType, int buffValue, int duration) {
		super();
		this.useId = useId;
		this.buffType = buffType;
		this.buffValue = buffValue;
		this.duration = duration;
	}
	
	public int getUseId() {
		return useId;
	}
	public BuffType getBuffType() {
		return buffType;
	}
	public void setBuffType(BuffType buffType) {
		this.buffType = buffType;
	}
	public int getBuffValue() {
		return buffValue;
	}
	public void setBuffValue(int buffValue) {
		this.buffValue = buffValue;
	} 
	public void heatBeat(){
		nowTime+=1;
	}
	public boolean isTimeOut() {
		if (duration == -1) {
			return false;
		}
		return nowTime >= duration;
	}
	
	
	
}
